package cn.itcast.service.impl;

import cn.itcast.dao.AccountDao;
import cn.itcast.domain.Account;
import cn.itcast.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
@Service
public class AccountServiceImpl implements AccountService {
  @Autowired
   AccountDao accountDao;
    @Override


    public List<Account> findLike(String name) {

        return accountDao.findLike("%"+name+"%");
    }
}
